package net.vinote.smart.platform.module.database.customize;

import net.vinote.smart.platform.module.database.DataBaseFeature;

public class Oracle implements DataBaseFeature {

	public String getPgination(String querySql, int pageSize, int pageNum) {
		return null;
	}

	@Override
	public String getColumnSQL(String querySQL, String... columns) {
		StringBuffer sb = new StringBuffer("select ");
		int index = columns.length;
		for (String col : columns) {
			sb.append(col);
			if (--index > 0) {
				sb.append(",");
			}
		}
		sb.append(" from (").append(querySQL).append(")");
		return sb.toString();
	}
}
